package com.wash.shoes.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wash.shoes.entity.ShopGoodsPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品的表 Mapper 接口
 * </p>
 *
 * @author zhengyunpeng
 * @since 2024-08-26
 */
@Mapper
public interface ShopGoodsMapper extends BaseMapper<ShopGoodsPo> {

    /**
     * 分页查询数据
     *
     * @param page
     * @param shopGoodsPo
     * @return
     */
    List<ShopGoodsPo> goodsList(@Param("page") Page page, @Param("shopGoodsPo") ShopGoodsPo shopGoodsPo, @Param("shopId") String shopId);

    /**
     * @author lijianguo
     * @Date 15/09/2024
     * id
     **/
    ShopGoodsPo getBySkuId(@Param("appSkuId") String appSkuId);

    /**
     * @author lijianguo
     * @Date 16/09/2024
     * 请输入方法的简介
     **/
    ShopGoodsPo getByName(@Param("productName") String productName, @Param("sellType") Integer sellType);

    /**
     * @author lijianguo
     * @Date 22/09/2024
     * 请输入方法的简介
     **/
    ShopGoodsPo getReturnGoods(@Param("shoeName") String shoeName);

    /**
     * 商品的列表
     *
     * @param typeId
     * @return
     */
    List<ShopGoodsPo> typeGoodsList(@Param("typeId") String typeId, @Param("sellType") Integer sellType,@Param("shopId") String shopId);

}
